<?php if ($comfy['featuredarea'] == true) : ?>
<div class="featured">
<div class="content">

	<h1><?php print FEATURED_STORIES; ?></h1>
	
	<?php $features = new WP_query(); $features->query('showposts='.$comfy['featured_n'].'&cat='.$comfy['featured']); ?>
	<?php global $wp_query; $wp_query->in_the_loop = true; ?>

	<ul id="featuredposts" class="featuredposts">
	<?php while ($features->have_posts()) : $features->the_post(); ?>
	<li><a href="#" rel="post-<?php the_ID(); ?>" class="selected"></a></li>
	<?php endwhile; ?>
	</ul><div class="clear"></div>

	<?php while ($features->have_posts()) : $features->the_post(); ?>
	<div id="post-<?php the_ID(); ?>" class="featuredposts_content">
	<div class="thumb"><?php show_thumb($comfy['FTwidth'],$comfy['FTheight'],$comfy['crop'],$comfy['quality']); ?></div>
	<div class="fpost">
	
		<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
		<p><?php print do_excerpt(get_the_excerpt(), 40); ?></p>
		<span class="read"><a href="<?php the_permalink(); ?>"><strong><?php print CONTINUE_READING_FULL_STORY; ?></strong></a> (<?php print READ; ?> <?php if(function_exists('the_views')) { the_views(); } ?> <?php print TIMES; ?>)</span>
		<span class="docomment"><a href="<?php the_permalink(); ?>#respond"><strong><?php print ADD_COMMENT; ?></strong></a> - <a href="<?php the_permalink(); ?>#comments"><strong><?php comments_number('0','1','%'); ?> <?php print USERS; ?></strong></a> <?php print COMMENTED_ON_POST; ?></span>
	
	</div>
	</div>
	<?php endwhile; ?>

	<script type="text/javascript">
	var featuredposts=new ddtabcontent("featuredposts")
	featuredposts.setpersist(false)
	featuredposts.setselectedClassTarget("link")
	featuredposts.init(7500)
	</script>

</div>
<div class="footer"></div>
</div>
<?php endif; ?>